const nxItem = require('../../behaviors/form/nx-item');

Component({
  behaviors: [nxItem],
  properties: {
    // 可设置为任意原生类型, 如 text number idcard digit
    type: {
      type: String,
    },
    disabled: {
      type: Boolean,
      value: false
    },
    isLabelType: {
      type: Boolean,
      value: false
    },
    maxlength: {
      type: Number,
      value: 300
    }
  },
  methods: {
    input: function (e) {
      this.triggerEvent('input', e.detail.value)
    },
  }
})